package com.lc.code.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "email-server",path = "/email")
public interface EmailFeign {
    @PostMapping("/{email}/{code}")
    boolean send(@PathVariable("email") String email, @PathVariable("code") String code);
}
